package pandabay.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class NewProduct {

	private String description;
    private String category;
    private double startPrice;
    private String startDate;
    private String endDate;
    private String image;
	
    /** Logger for this class and subclasses */
    protected final Log logger = LogFactory.getLog(getClass());

    private String name;
    public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
		logger.info("Name set to " + name);
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
		logger.info("Description set to " + description);
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
		logger.info("Category set to " + category);
	}

	public double getStartPrice() {
		return startPrice;
	}

	public void setStartPrice(double startPrice) {
		this.startPrice = startPrice;
		logger.info("Start price set to " + startPrice);
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
		logger.info("Start date set to " + startDate);
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
		logger.info("End date set to " + endDate);
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
		logger.info("Image set to " + image);
	}

}
